package CACA;

import java.util.ArrayList;

public class ItemSet {
	ArrayList<Item> items;
	int suppCount;
	public ItemSet()
	{
		items = new ArrayList<Item>();
	}
	@SuppressWarnings("unchecked")
	public ItemSet clone()
	{
		ItemSet itemset = new ItemSet();
		itemset.items = (ArrayList<Item>) items.clone();
		itemset.suppCount = suppCount;
		return itemset;
	}
	public Item get(int i)
	{
		return items.get(i);
	}
	public Item getLast()
	{
		return items.get(items.size()-1);
	}

}
